﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Drawing;
using System.Data;
using System.Text;
using System.Windows.Forms;
using DevExpress.XtraEditors;
using ERP_RORZE_TOOL.DBAccess;

namespace ERP_RORZE_ORDER.OrderObject.UserControls
{
    public partial class ucView : DevExpress.XtraEditors.XtraUserControl
    {
        private string qInDatHang = "Sp_243_Rpt_QInDatHang";
        public ucView(string orderID)
        {
            InitializeComponent();

            rptPrint prt = new rptPrint();
            prt.DataSource = BaseDAO.ExecuteQuery(qInDatHang + " N'" + orderID + "'");
            this.documentViewer1.DocumentSource = prt;
            //this.documentViewer1.ResetBindings();
        }
    }
}
